<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:p="http://primefaces.org/ui" xmlns:a="http://java.sun.com/jsf/html" xmlns:h="http://xmlns.jcp.org/jsf/html">    
  <h:head>
    <link rel="icon" href="images/favicon2.ico"/>
   <title>Signin</title>   
    <style type="text/css" media="screen">
   
        @import url('jumbotron-narrow.css');
        @import url('bootstrap.min.css');
        @import url('style.css');

    </style> 
  </h:head>
    
    
  <h:body>
       
     
  </h:body>
    <div class="container">
            
            <div class="header">
                <h3 class="text-muted">MeteoCal</h3>
            </div>               
            
            <div class="jumbotron">    
               <h:form class= "form-signin">
     <h2 class="form-signin-heading">Register in MeteoCal</h2>
        <b>Name:</b>
        <p:inputText value="#{registrationBean.user.name}" id="inputEmail" class="form-control" placeholder="Name" required="required"/><br></br>
        <b>e-mail:</b>
        <p:inputText value="#{registrationBean.user.email}" id="inputMail" class="form-control" placeholder="e-mail" required="required"/><br></br>
        <b>Password:</b>
        <p:password id="password" value="#{registrationBean.user.password}" placeholder="Password" class="form-control"/><br></br>
        
        <a:commandButton class="btn btn-primary btn-lg" id="submit" value="Register" action="#{registrationBean.register()}" />           
       </h:form>
        
        
            </div>
            <footer class="footer">
                <p> Alessio Monesi - Roberto Mussini</p>
            </footer>
        </div>
</html>

      
